package com.hmkj.core.service.marketing.impl;

import com.hmkj.common.baseMapper.GenericMapper;
import com.hmkj.core.mapper.marketing.UserEarningsRankingMapper;
import com.hmkj.core.po.marketing.UserEarningsRanking;
import com.hmkj.core.service.marketing.UserEarningsRankingService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户盈利排行榜业务相关Service接口实现<br>
 *
 * @ClassName: UserEarningsRankingServiceImpl
 * @author eproo
 * @date   2018-07-07 03:11:59
 */
@Service
@Scope("prototype")
@Transactional(rollbackFor = Exception.class)
public class UserEarningsRankingServiceImpl implements UserEarningsRankingService {

	@Resource
    private UserEarningsRankingMapper userEarningsRankingMapper;

    @Override
    public GenericMapper<UserEarningsRanking,Integer> _getMapper() {
        return userEarningsRankingMapper;
    }

    @Override
    public List<UserEarningsRanking> findUserRankingData() {
        return userEarningsRankingMapper.findUserRankingData();
    }
}
